package com.zzyl.serve.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

@Data
@ApiModel(description = "护理任务列表查询入参DTO")
public class NursingTaskQueryDTO {

    @ApiModelProperty(value = "老人姓名", example = "关羽", required = false)
    private String elderName;

    @ApiModelProperty(value = "结束时间", example = "2024-09-30 23:59:59", required = false)
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") // 约束前端时间格式
    private LocalDateTime endTime;

    @ApiModelProperty(value = "护理员ID", example = "102", required = false, dataType = "integer(int64)")
    private Long nurseId; // 注意：接口文档参数名为nurseId，非nursingId

    @ApiModelProperty(value = "页码", example = "1", required = false, dataType = "integer(int32)")
    private Integer pageNum = 1; // 默认页码1

    @ApiModelProperty(value = "每页显示条数", example = "10", required = false, dataType = "integer(int32)")
    private Integer pageSize = 10; // 默认每页10条

    @ApiModelProperty(value = "护理项目ID", example = "6", required = false, dataType = "integer(int64)")
    private Long projectId;

    @ApiModelProperty(value = "开始时间", example = "2024-09-01 00:00:00", required = false)
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime startTime;

    @ApiModelProperty(value = "状态（1待执行 2已执行 3已关闭）", example = "1", required = false, dataType = "integer(int32)")
    private Integer status;
}